import React,{Component} from 'react';
import {
  View,
  StyleSheet,
  Text,
  Image
} from 'react-native';
import TopMenu from '../components/home/topMenu';
let BDMap=require('../components/bdmap');
export default class Home extends Component<{}> {
    static navigationOptions={
      tabBarLabel:'首页',
      tabBarIcon:({tintColor})=>(
        <Image
          source={require('../../Assets/images/home.png')}
          style={[styles.icon,{tintColor:tintColor}]}
        />
      )
    }
    constructor(props) {
      super(props);
    }
    render() {
      return (
        <View style={styles.container}>
          <TopMenu />
  
          <View style={styles.centerContainerStyle}>
            <Text>家谱</Text>
          </View>
          <BDMap/>
          {/* <BottomMenu navigation={this.props.navigation}/> */}
        </View>
      )
    }
  }
  let styles = StyleSheet.create({
    container: {
      flex: 1,
      backgroundColor: '#E8E8E8',
      marginTop: 10,
      flexDirection: 'column',
      alignItems: 'center',
    },
    centerContainerStyle: {
      flex: 1,
      alignItems: 'center',
      justifyContent: 'center',
    },
    icon: {
      width: 26,
      height: 26,
    },})